<?php if (!defined('THINK_PATH')) exit();?>	<!DOCTYPE HTML>
<html id="gray_html" class="height_box">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
        <meta content="telephone=no" name="format-detection">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>易美佳人</title>
        <link rel="stylesheet" type="text/css" href="/meirongtest/Public/Wechat/api/css/index.css"/>
	</head>
<body class="height_box">
	<header id="header">
		<span id="goback_icon" onclick="history.back(-1)"></span>
		<span>预约订单</span>
	</header>
	<div class="container" id="appointment_mb">
		<div class="order_data">
			<div class="od_top">
				<div class="beauty_img">
					<img src="<?php echo ($project["headimg"]); ?>" width="120px" height="80px">
				</div>
				<div class="beauty_info">
					<p><span class="beauty_name"><?php echo ($project["project_name"]); ?></span></p>
					<p class="beauty_beautician">美容师：<span><?php echo ($beautician["name"]); ?></span></p>
					<p><span class="beauty_price">￥<?php echo ($project["project_price"]); ?></span>数量：<span>1</span></p>
				</div>
				<div class="clear"></div>
			</div>
			<div id="order_coupon">
				<?php if($mycouponid == ''): ?><a href="<?php echo U('Home/useCoupon');?>"><span class="order_page_icon"></span>选择优惠券</a>
				<?php else: ?>
					<a href="<?php echo U('Home/useCoupon');?>"><span class="order_page_icon"></span>使用<span><?php echo ($mycoupon["price"]); ?></span>元优惠券</a><?php endif; ?>
			</div>
			<div id="order_total_pay">应付金额：<span>￥<?php echo ($finalprice); ?></span></div>
		</div>
		<ul id="order_service_type">
		<!-- 选中那种服务方式就在哪个li的class上加一个selected -->
			<li class="ost" id="home">
				<div class="ost_icon"></div>
			</li>
			<li class="ost <?php if($lbs['id'] != ''): ?>selected<?php endif; ?>" id="lbs">
				<a href="#lbs"><span class="ost_icon"></span></a>
			</li>
			<li class="clear"></li>
		</ul>
		<div>
		<form id="home_form">
			<p id="home_tip">请填写相关信息</p>
			<p>
				<span class="order_page_icon"></span>
				<input type="text" id="user_name" name="user_name" placeholder="联系人" notnull value="<?php echo ($address["infoname"]); ?>"/>
			</p>
			<p>
				<span class="order_page_icon"></span>
				<input type="text" id="user_tel" name="user_tel" placeholder="联系电话" pattern="[0-9]*" notnull value="<?php echo ($address["mobilephone"]); ?>" />
			</p>
			<p>
				<span class="order_page_icon"></span>
				<input type="text" class="hasarrow" id="service_region" name="service_region" placeholder="选择服务地址" notnull value="<?php echo ($address["seraddress"]); ?>" readonly/>
				<select id="region_select">
				<option value="" text="--请选择--" >--请选择--</option>
					<?php if(is_array($areaList)): $i = 0; $__LIST__ = $areaList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["name"]); ?>" text="<?php echo ($vo["name"]); ?>" ><?php echo ($vo["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
			</p>
			<p class="edit_icon">
				<input type="text" id="user_address" name="user_address" placeholder="填写详细地址"  value="<?php echo ($address["serdetailaddress"]); ?>" notnull/>
			</p>
			<p>
				<span class="order_page_icon"></span>
				<span id="loc_btn" class="hasarrow">自动定位我的位置</span>
			</p>
		</form>
		</div>
		<!-- 选择第三方服务，且已经选好了服务的店铺 -->
		<?php if(($lbsid != '') and ($lbsid != 0)): ?><div id="select_lbs">
			<a href="<?php echo U('Home/lbsDetail',array('id'=>$id));?>">
				<div>
					<div class="lbs_img">
						<img src="<?php echo ($lbs["headimg"]); ?>">
					</div>
					<div class="lbs_info">
						<p><span class="lbs_name"><?php echo ($lbs["store"]); ?></span></p>
						<p class="lbs_loc"><?php echo ($lbs["address"]); ?></p>
						<p class="lbs_data">
							<span>已接单:<span class="has_order"><?php echo ($lbs["ordernumber"]); ?></span></span>
							<span class="lbs_loc_box"><span class="loc_icon"></span><span class="distance">0.8km</span></span>
						</p>
					</div>
					<div class="clear"></div>
				</div>
			</a>
		</div><?php endif; ?>
		<?php if($hasmrs == 0): ?><div id="book_time_box">
			<p id="book_time_tip"><span class="order_page_icon"></span>选择预约时间</p>
			<div id="time_detail_box">
				<ul id="date_list">
					<li class="dl cur_dl" date="<?php echo ($date["first"]); ?>" did="0"><span class="date_box">今天</span></li>
					<li class="dl" date="<?php echo ($date["second"]); ?>" did="1"><span class="date_box"><?php echo ($date["secondm"]); ?>.<?php echo ($date["secondd"]); ?></span></li>
					<li class="dl" date="<?php echo ($date["third"]); ?>" did="2"><span class="date_box"><?php echo ($date["thirdm"]); ?>.<?php echo ($date["thirdd"]); ?></span></li>
					<li class="dl" date="<?php echo ($date["fourth"]); ?>" did="3"><span class="date_box"><?php echo ($date["fourthm"]); ?>.<?php echo ($date["fourthd"]); ?></span></li>
					<li class="clear"></li>
				</ul>
				<table cellpadding="0" cellspacing="0" id="time_table">
					<tr>
						<td time="09:00" id="1">9:00</td>
						<td time="09:30" id="2">9:30</td>
						<td time="10:00" id="3">10:00</td>
						<td time="10:30" id="4">10:30</td>
					</tr>
					<tr>
						<td time="11:00" id="5">11:00</td>
						<td time="11:30" id="6">11:30</td>
						<td time="12:00" id="7">12:00</td>
						<td time="12:30" id="8">12:30</td>
					</tr>
					<tr>
						<td time="13:00" id="9">13:00</td>
						<td time="13:30" id="10">13:30</td>
						<td time="14:00" id="11">14:00</td>
						<td time="14:30" id="12">14:30</td>
					</tr>
					<tr>
						<td time="15:00" id="13">15:00</td>
						<td time="15:30" id="14">15:30</td>
						<td time="16:00" id="15">16:00</td>
						<td time="16:30" id="16">16:30</td>
					</tr>
					<tr>
						<td time="17:00" id="17">17:00</td>
						<td time="17:30" id="18">17:30</td>
						<td time="18:00" id="19">18:00</td>
						<td time="18:30" id="20">18:30</td>
						
					</tr>
					<tr>
						<td time="19:00" id="21">19:00</td>
						<td time="19:30" id="22">19:30</td>
						<td time="20:00" id="23">20:00</td>
					</tr>
				</table>
			</div>
			<!-- 遮盖层，防止点击过快 -->
			<div class="time_layer">
				<img src="/meirongtest/Public/Wechat/api/images/indicator.gif" />
			</div>
		</div><?php endif; ?>
	</div>
	<footer id="pay_footer" style="z-index:300">
		<div id="pay_btn">确认支付</div>
	</footer>
	<div id="layer_box" class="height_box">
		<div id="first_tip_box">
			<img src="/meirongtest/Public/Wechat/api/images/first_img.png"  />
			<a href="<?php echo U('Home/lbsList');?>" class="first_btn">就听你的吧！</a>
			<span class="first_btn">还是来我这吧！</span>
		</div>
	</div>
</body>
<script type="text/javascript" src="/meirongtest/Public/Wechat/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/meirongtest/Public/Wechat/js/global.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=Xbq3g4meudxD5Q0MB9osTLpg"></script>
<script type="text/javascript" src="/meirongtest/Public/Wechat/api/js/index.js"></script>
<script>
	var baidu_map_ak='Xbq3g4meudxD5Q0MB9osTLpg';
	var isfirst="<?php echo ($isfirst); ?>";
	var isdisplay="<?php echo ($isdisplay); ?>";
	notime = <?php echo ($notime); ?>;
	$(document).ready(index_obj.order_init);
	var hasmrs = "<?php echo ($hasmrs); ?>";
	var status = "<?php echo ($addressstatus); ?>";
</script>
</html>